package ModelLayer;

public class Example
{
    private int serialNumber;
    private String dateOfPurchase;
    private double priceOfPurchase;
    private boolean lentOut;
    private Dvd dvd;
    
    /**
     * Constructor
     */
    public Example(int serialNumber, String dateOfPurchase, double priceOfPurchase, Dvd dvd)
    {
        this.serialNumber = serialNumber;
        this.dateOfPurchase = dateOfPurchase;
        this.priceOfPurchase = priceOfPurchase;
        lentOut = false;
        this.dvd = dvd;
    }
    
    /**
     * Returns the serial number
     */
    public int getSerialNumber()
    {
        return serialNumber;
    }
    
    /**
     * Returns the date this example was bought
     */
    public String getDateOfPurchase()
    {
        return dateOfPurchase;
    }
    
    /**
     * Returns the price given for this example
     */
    public double getPriceOfPurchase()
    {
        return priceOfPurchase;
    }
    
    /**
     * Returns the general DVD information about this example
     */
    public Dvd getDvd()
    {
        return dvd;
    } 
    
    /**
     * Returns wheather this example is lend out
     * Deprecated: use the loan object in stead
     */
    public boolean isLentOut()
    {
        return lentOut;
    }
}